package io.github.talelin.latticy.mapper.oms;

import io.github.talelin.latticy.bo.InboundOrderBO;
import io.github.talelin.latticy.model.oms.InboundOrderDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 入库单表 Mapper 接口
 * </p>
 *
 * @author generator@mrxiao
 * @since 2022-05-16
 */
public interface InboundOrderMapper extends BaseMapper<InboundOrderDO> {

    List<String> selectBySku(@Param("sku") String sku);

    @MapKey("inboundOrderNo")
    Map<String, InboundOrderBO> getInboundOrderBOListByIds(List<String> list);
}
